package com.info33.platform.business.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.info33.platform.business.app.dto.AppTenantMenuDTO;
import com.info33.platform.business.app.entity.AppMenu;
import com.info33.platform.business.app.entity.AppTenantMenu;
import com.info33.platform.business.app.vo.AppHomeVO;
import com.info33.platform.business.app.vo.AppTenantMenuVO;
import com.info33.platform.common.mvc.vo.Result;
import com.info33.platform.system.vo.SysUserVO;

import java.util.List;

/**
 * @author admin
 */
public interface AppTenantMenuService extends IService<AppTenantMenu> {

    /**
     * App 首页
     *
     * @param currentUser 当前用户
     * @return vo
     */
    AppHomeVO appHome(SysUserVO currentUser);

    /**
     * app - 菜单更多
     *
     * @param currentUser 当前用户
     * @return vo
     */
    AppTenantMenuVO appMore(SysUserVO currentUser);

    /**
     * app - 我所拥有的菜单
     *
     * @param currentUser-
     * @return -
     */
    List<AppMenu> appHomeMenuToSort(SysUserVO currentUser);

    /**
     * pc - 菜单分页
     *
     * @param page-
     * @param dto-
     * @param currentUser-
     * @return -
     */
    IPage<AppTenantMenuVO> pcPage(Page<AppTenantMenu> page, AppTenantMenuDTO dto, SysUserVO currentUser);

    /**
     * 菜单详情
     *
     * @param id-
     * @return -
     */
    AppTenantMenuVO pcDetail(Long id);

    /**
     * pc - 重置
     *
     * @param id-
     * @return -
     */
    Result<Object> pcReset(Long id);

    /**
     * pc - 编辑
     *
     * @param dto-
     * @return -
     */
    Result<Object> pcEdit(AppTenantMenuDTO dto);

    /**
     * pc - 菜单树
     *
     * @param tenantId-
     * @return -
     */
    List<AppTenantMenuVO> pcTree(Long tenantId);

    /**
     * app - 首页内容菜单
     *
     * @param currentUser 当前用户 app 租户用户
     * @return -
     */
    List<AppMenu> appHomeMenu(SysUserVO currentUser);
}